package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/19
*/
@Data
@TableName(value = "publisher")
public class Publisher {
    /**
     * 发布人id
     */
     @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private Integer companyId;
//公司实体类
   @TableField(value ="company",exist = false )
      private Company company;


    /**
     * 用户名
     */
    @TableField(value = "publishername")
    private String publishername;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 性别（ 1，男  2，女）
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 备用名（根据性别确定是李女士或先生）
     */
    @TableField(value = "standby_name")
    private String standbyName;

    /**
     * 头像
     */
    @TableField(value = "face")
    private String face;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 职位
     */
    @TableField(value = "capacity")
    private String capacity;

    /**
     * 是否离职
     */
    @TableField(value = "is_depart")
    private Boolean isDepart;

    /**
     * 电话
     */
    @TableField(value = "tel")
    private String tel;

    /**
     * 假删
     */
    @TableField(value = "enable")
    private Boolean enable;

    public static final String COL_COMPANY_ID = "company_id";

    public static final String COL_PUBLISHERNAME = "publishername";

    public static final String COL_PASSWORD = "password";

    public static final String COL_SALT = "salt";

    public static final String COL_NAME = "name";

    public static final String COL_SEX = "sex";

    public static final String COL_STANDBY_NAME = "standby_name";

    public static final String COL_FACE = "face";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CAPACITY = "capacity";

    public static final String COL_IS_DEPART = "is_depart";

    public static final String COL_ENABLE = "enable";
}